<?php
/**
 * The following variables are available in this template:
 * - $this: the BootstrapCode object
 */
?>
<?php echo "<?php\n"; ?>
/* @var $this <?php echo $this->getControllerClass(); ?> */
/* @var $model <?php echo $this->getModelClass(); ?> */
<?php echo "?>\n"; ?>

<?php
echo "<?php\n";
$nameColumn = $this->guessNameColumn($this->tableSchema->columns);
$label = $this->pluralize($this->class2name($this->modelClass));
echo "\$this->breadcrumbs=[
	'$label'=>['index'],
	\$model->{$nameColumn},
];\n";
?>

$this->menu=[
	['icon' => 'glyphicon glyphicon-home','label'=>'Manage <?php echo $this->modelClass; ?>', 'url'=>['admin']],
	['icon' => 'glyphicon glyphicon-plus-sign','label'=>'Create <?php echo $this->modelClass; ?>', 'url'=>['create']],
	['icon' => 'glyphicon glyphicon-edit','label'=>'Update <?php echo $this->modelClass; ?>', 'url'=>['update', 'id'=>$model-><?php echo $this->tableSchema->primaryKey; ?>]],
	['icon' => 'glyphicon glyphicon-minus-sign','label'=>'Delete <?php echo $this->modelClass; ?>', 'url'=>'#', 'linkOptions'=>['submit'=>['delete','id'=>$model-><?php echo $this->tableSchema->primaryKey; ?>],'confirm'=>'Are you sure you want to delete this item?']],
];

$this->pageTitle='View';
$this->pageSubTitle='<?php echo $this->modelClass?>'.$model-><?php echo $this->tableSchema->primaryKey?>.'.';


?>

<div class="row">
	<div class="col-lg-12">
		<div class="panel panel-midnightblue">
			<div class="panel-heading">
				<h4>信息详情</h4>
			</div>
			<div class="panel-body">
				<?php echo "<?php"; ?> $this->widget('zii.widgets.CDetailView',[
				'htmlOptions' => [
				'class' => 'table table-striped table-condensed table-hover',
				],
				'data'=>$model,
				'attributes'=>[
				<?php
				foreach ($this->tableSchema->columns as $column) {
				    echo "\t\t'" . $column->name . "',\n";
				}
				?>
				],
				]); ?>
			</div> <!-- end panel-body -->
		</div>
	</div>
</div> <!-- end row -->